package com.vhans.db.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.vhans.core.domain.AOperationLog;
import com.vhans.db.mapper.AOperationLogMapper;
import com.vhans.db.model.dto.ConditionDTO;
import com.vhans.db.model.vo.log.OperationLogVO;
import com.vhans.db.service.IAOperationLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 操作日志业务接口实现类
 *
 * @author vhans
 */
@Service
public class AOperationLogServiceImpl extends ServiceImpl<AOperationLogMapper, AOperationLog> implements IAOperationLogService {

    @Autowired
    private AOperationLogMapper operationLogMapper;

    @Override
    public List<OperationLogVO> listOperationLogVO(ConditionDTO condition) {
        // 查询操作日志列表
        return operationLogMapper.selectOperationLogVOList(condition);
    }

    @Override
    public void saveOperationLog(AOperationLog operationLog) {
        // 保存操作日志
        operationLogMapper.insert(operationLog);
    }

}
